package com.booktrading.service;

import com.booktrading.model.User;
import java.util.List;

public interface UserService {
    
    /**
     * 用户注册
     */
    User register(User user);
    
    /**
     * 根据用户名查询用户
     */
    User getUserByUsername(String username);
    
    /**
     * 根据ID查询用户
     */
    User getUserById(Long id);

    List<User> getAllUsers();

    // 更新用户状态
    boolean updateUserStatus(Long userId, Integer status);
} 